@bg-color: #d1d1d1;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: bold 20px "Courier";
}

#main {
    border-radius: 15px;
    border: 5px solid #000;
    width: 360px;
    height: 500px;
    background-color: #67d3ff;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    overflow: hidden;
    margin: auto;
    top: 15px;
    left: 0;
    right: 0;

    #horn {
        border-bottom: 70px solid #ff2d2d;
        border-left: 70px solid transparent;
        width: 0;
        height: 0;
        position: absolute;
        bottom: 0;
        right: 0;
        border-radius: 0px;
    }
}

#screen {
    background-color: @bg-color;
    border: 2px solid #000;
    width: 304px;
    height: 304px;
    position: relative;

    #snake {
        &>div {
            width: 10px;
            height: 10px;
            background-color: #000;
            border: 1px solid @bg-color;
            position: absolute;
            z-index: 1;
        }
    }

    #food {
        width: 10px;
        height: 10px;
        background-color: #000;
        border: 1px solid @bg-color;
        position: absolute;
        left: 40px;
        top: 100px;
        border-radius: 50%;
    }
}

#score-panel {
    width: 304px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 130px;

    &>div {
        width: 50%;
    }

    #btn1 {
        &>div {
            display: flex;
            flex-direction: row;
            float: left;
        }

        div:nth-child(1) {
            width: 100%;
            justify-content: center;
            align-items: flex-end;
            height: 43px;

            svg {
                transform: rotate(180deg);
            }
        }

        div:nth-child(2) {
            width: 50%;
            justify-content: flex-end;
            align-items: center;
            height: 1.5px;

            svg {
                transform: rotate(90deg);
                margin-right: 1px;
            }
        }

        div:nth-child(3) {
            width: 50%;
            justify-content: flex-start;
            align-items: center;
            height: 1.5px;

            svg {
                transform: rotate(-90deg);
                margin-left: 1px;
            }
        }

        div:nth-child(4) {
            width: 100%;
            justify-content: center;
            align-items: flex-start;
            height: 38px;
        }
    }

    #btn2 {
        &>div {
            width: 50%;
            float: left;
            display: flex;
            flex-direction: row;
            align-items: center;
            height: 43px;
        }

        div:nth-child(1),
        div:nth-child(3) {
            justify-content: flex-end;
        }
    }
}